[<<Previous Entry]
[^^Up^^]
[Next Entry>>]
[Menu]
[About The Guide]
##############################################################################
###+------+###################################################################
#+-| FIND |---------------------------------------------+#####################
#| +------+ The FIND command is an alternative for SEEK |#####################
#+------------------------------------------------------+#####################
##############################################################################
##############################################################################
#+--| Syntax |---------------------+##########################################
#| [!<Alias>] FIND <C-exp> |##########################################
#+---------------------------------+##########################################
##############################################################################
##############################################################################
#######+---| Description |--------------------------------------------+#######
#######| If FIND does not locate the matching record, then EOF equals |#######
#######| TRUE. FIND respects the status of the SET EXACT flag. |#######
#######| ------------------------------------------------------------ |#######
#######| The FIND command is similar to the SEEK command, except that |#######
#######| FIND can only locate character data. |#######
#######| ------------------------------------------------------------ |#######
#######| The system variable __soft_seek places the pointer at the |#######
#######| position of the unfound target record rather than at the end |#######
#######| of the file. |#######
#######| __soft_seek is defined in the data.hdr header file. |#######
#######+--------------------------------------------------------------+#######
##############################################################################
##############################################################################
#########+--| Example 1 |-------------------------------------------+#########
#########| * Find a name in the index file. |#########
#########| |#########
#########| FIND "Caroline Schelin" |#########
#########+----------------------------------------------------------+#########
##############################################################################
##############################################################################
#########+--| Example 2 |-------------------------------------------+#########
#########| * Allow user to specify the search string. |#########
#########| |#########
#########| ACCEPT "Input search name: " TO srch_name |#########
#########| FIND srch_name |#########
#########| IF found() |#########
#########| EDIT |#########
#########| ELSE |#########
#########| {...} |#########
#########+----------------------------------------------------------+#########
##############################################################################
See Also:
SEEK
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by Dave Pearson